//*********************************************************************
//      Author: Tim Fahers
//        Date: 07/04/2011
// Description: PAC Script to redirect iPlayer URLs via a proxy.
//*********************************************************************
function FindProxyForURL(url, host)
{
    if (shExpMatch(url, "*.bbc.co.uk/iplayer*") ||
        shExpMatch(url, "*.bbc.co.uk/mediaselector*"))
    {
        //return "PROXY [your-proxy.address]:[your-port-number]";
        return "SOCKS localhost:3050";
    }
    else
    {
        return "DIRECT";
    }
}
